package education.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import education.dao.MajorsInfoDao;
import education.model.MajorsInfo;
import education.service.MajorsInfoManager;

@Component("majorsInfoManager")
public class MajorsInfoManagerImpl implements MajorsInfoManager {
	private MajorsInfoDao majorsInfoDao;

	public MajorsInfoDao getMajorsInfoDao() {
		return majorsInfoDao;
	}

	@Resource
	public void setMajorsInfoDao(MajorsInfoDao majorsInfoDao) {
		this.majorsInfoDao = majorsInfoDao;
	}

	public void delete(MajorsInfo majorsInfo) {
		// TODO Auto-generated method stub

	}

	public boolean delete(int id) {		
		return majorsInfoDao.delete(id);
	}

	public int getCount() {
		return majorsInfoDao.getCount();
	}

	public MajorsInfo loadById(int id) {
		// TODO Auto-generated method stub
		return majorsInfoDao.loadById(id);
	}

	public List<MajorsInfo> paging(int pageSize, int pageCount, int rowCount) {	
		return majorsInfoDao.paging(pageSize, pageCount, rowCount);
	}

	public void save(MajorsInfo majorsInfo) {
		majorsInfoDao.save(majorsInfo);

	}

	public boolean update(MajorsInfo majorsInfo) {
	
		return majorsInfoDao.update(majorsInfo);
	}

	public List<MajorsInfo> getCourseList() {
		return majorsInfoDao.getCourseList();
	}

}
